/**
 * Copyright (c) 2014, 2017, Oracle and/or its affiliates.
 * The Universal Permissive License (UPL), Version 1.0
 */
"use strict";
define(["ojs/ojcore","jquery","ojs/ojcomponentcore","ojs/ojdvt-base","ojs/internal-deps/dvt/DvtToolkit"],function(a,g){a.Ra("oj.dvtTimeComponent",g.oj.dvtBaseComponent,{Fj:function(){return["optionChange","viewportChange"]},Ti:function(){var b=this._super(),c=a.$a.wF("wide");b["DvtUtilBundle.MONTH_JANUARY"]=c[0];b["DvtUtilBundle.MONTH_FEBRUARY"]=c[1];b["DvtUtilBundle.MONTH_MARCH"]=c[2];b["DvtUtilBundle.MONTH_APRIL"]=c[3];b["DvtUtilBundle.MONTH_MAY"]=c[4];b["DvtUtilBundle.MONTH_JUNE"]=c[5];b["DvtUtilBundle.MONTH_JULY"]=
c[6];b["DvtUtilBundle.MONTH_AUGUST"]=c[7];b["DvtUtilBundle.MONTH_SEPTEMBER"]=c[8];b["DvtUtilBundle.MONTH_OCTOBER"]=c[9];b["DvtUtilBundle.MONTH_NOVEMBER"]=c[10];b["DvtUtilBundle.MONTH_DECEMBER"]=c[11];c=a.$a.rF("wide");b["DvtUtilBundle.DAY_SUNDAY"]=c[0];b["DvtUtilBundle.DAY_MONDAY"]=c[1];b["DvtUtilBundle.DAY_TUESDAY"]=c[2];b["DvtUtilBundle.DAY_WEDNESDAY"]=c[3];b["DvtUtilBundle.DAY_THURSDAY"]=c[4];b["DvtUtilBundle.DAY_FRIDAY"]=c[5];b["DvtUtilBundle.DAY_SATURDAY"]=c[6];c=a.$a.rF("abbreviated");b["DvtUtilBundle.DAY_SHORT_SUNDAY"]=
c[0];b["DvtUtilBundle.DAY_SHORT_MONDAY"]=c[1];b["DvtUtilBundle.DAY_SHORT_TUESDAY"]=c[2];b["DvtUtilBundle.DAY_SHORT_WEDNESDAY"]=c[3];b["DvtUtilBundle.DAY_SHORT_THURSDAY"]=c[4];b["DvtUtilBundle.DAY_SHORT_FRIDAY"]=c[5];b["DvtUtilBundle.DAY_SHORT_SATURDAY"]=c[6];return b},El:function(a){if("viewportChange"===a.type){var c=(new Date(a.viewportStart)).toISOString(),d=(new Date(a.viewportEnd)).toISOString();a=a.minorAxisScale;var e={viewportStart:c,viewportEnd:d,minorAxisScale:a};this.fe("viewportStart",
c);this.fe("viewportEnd",d);this.fe("minorAxis.scale",a);this._trigger("viewportChange",null,e)}else this._super(a)},Tm:function(){null==this.options._resources&&(this.options._resources={});var b=this.options._resources,c=a.za.dj("datetime"),d=c.createConverter({hour:"numeric",minute:"2-digit",second:"2-digit"}),e=c.createConverter({hour:"numeric",minute:"2-digit"}),f=c.createConverter({hour:"numeric"}),g=c.createConverter({month:"numeric",day:"2-digit"}),k=c.createConverter({month:"long"}),c=c.createConverter({year:"numeric"});
b.converter={seconds:d,minutes:e,hours:f,days:g,weeks:g,months:k,quarters:k,years:c}},getContextByNode:function(a){return this.getSubIdByNode(a)}});a.Components.Xa("dvtTimeComponent","dvtBaseComponent",{properties:{},methods:{getContextByNode:{}},extension:{_widgetName:"dvtTimeComponent"}})});